<%@ Page Language="C#" AutoEventWireup="false" MasterPageFile="ScreenMasterPage.master" %>
<asp:Content ContentPlaceHolderID="Head" runat="server">

	<script type="text/javascript">
		window.top.importCommonOshControl(this, "Menu.htc");
		window.top.importThemedOshControl(this, "Clock.htc");
		window.top.importThemedOshControl(this, "MenuItem.htc");
		window.top.importThemedOshControl(this, "MenuSeparator.htc");

		function window::onload()
		{
			screen.onShow.attach(this, onShow);
			screen.onKeyPreview.attach(this, onKeyPreview);
		}
		function window::unload()
		{
			screen.onShow.detach(this, onShow);
			screen.onKeyPreview.attach(this, onKeyPreview);
		}

		function onShow()
		{
		}
		
		function onKeyPreview(sender, event)
		{
			if(event.keyCode == window.top.Keys.VK_CHANNELDOWN)
				event.keyCode = window.top.Keys.VK_UP;
			else if(event.keyCode == window.top.Keys.VK_CHANNELUP)
				event.keyCode = window.top.Keys.VK_DOWN;
		}

		function doClose()
		{
			osh.hide();
			MainMenu.first();
		}

	</script>

</asp:Content>
<asp:Content ContentPlaceHolderID="Body" runat="server">

	<h1>start</h1>

	<osh:Clock mode="full" />

	<osh:Menu id="MainMenu" hoverImageView="hoverImageView" selected="true">
		<osh:MenuItem id="mi1" hoverImage="/Themes/MCE/Images/home.hover.quickinfo.png" onclick="osh.navigator.go('QuickInfo');">Quick Info </osh:MenuItem>
		<osh:MenuItem id="mi2" hoverImage="/Themes/MCE/Images/home.hover.epg.png" onclick="osh.navigator.go('EPG');">EPG </osh:MenuItem>
		<osh:MenuItem id="mi3" hoverImage="/Themes/MCE/Images/home.hover.epg.png" onclick="osh.navigator.go('Teletext');">Teletext </osh:MenuItem>
		<!--
		<osh:MenuItem id="mi4" hoverImage="/Themes/MCE/Images/home.hover.record.png" onclick="osh.navigator.go('Record');">Record </osh:MenuItem>
		<osh:MenuSeparator id="sep1"></osh:MenuSeparator>
		<osh:MenuItem id="mi5" hoverImage="/Themes/MCE/Images/home.hover.weather.png" onclick="osh.navigator.go('Weather');">Weather </osh:MenuItem>
		-->
		<osh:MenuSeparator id="sep1"></osh:MenuSeparator>
		<!--
		<osh:MenuItem id="mi6" hoverImage="/Themes/MCE/Images/home.hover.settings.png" disabled="true" onclick="">Settings </osh:MenuItem>
		-->
		<osh:MenuItem id="mi7" hoverImage="/Themes/Common/Images/blank.png" onclick="window.top.location.reload(true);">Reload </osh:MenuItem>
		<osh:MenuItem id="mi8" hoverImage="/Themes/Common/Images/blank.png" onclick="doClose();">Close </osh:MenuItem>
	</osh:Menu>

	<img id="hoverImageView" src="/Themes/MCE/Images/home.hover.quickinfo.png" width="160" class="menuItemHoverImage" />

</asp:Content>
